<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="StyleSheet" href="../css/jpetstore.css" type="text/css" media="screen"/>
</head>
<body>
<div th:replace="common/top"></div>
    <div id="Content">
        <div id="BackLink">
            <a th:href="@{/catalog/viewProduct?productId=} +${product.productId}" th:text="'Return to ' +${product.productId}">Product ID</a>
        </div>

        <div id="Catalog">

            <table>
                <tr>
                    <td>
                        <label><img th:src="${product.getDescriptionImage()}"></label>
                        <label th:text="${product.getDescriptionText()}">Product DescriptionText</label>
                    </td>
                </tr>
                <tr>
                    <td><b th:text="${item.itemId}"> </b></td>
                </tr>
                <tr>
                    <td><b th:text="${item.attribute1}+${item.attribute2}+${item.attribute3}+${item.attribute4}+${item.attribute5}+${product.name}"><font size="4">
                        Item Attributes</font></b></td>
                </tr>
                <tr>
                    <td th:text="${product.name}">Product Name</td>
                </tr>
                <tr>
                    <td>
                        <label th:if="${item.quantity <= 0}">Back ordered.</label>
                        <label th:if="${item.quantity > 0}" th:text="${item.quantity} + @{in stock.}"> Quantity In Stock</label>
                    </td>
                </tr>
                <tr>
                    <td th:text="'S' + ${#numbers.formatDecimal(item.listPrice,1,2)}">Item ListPrice</td>
                </tr>

                <tr>
                    <td>
                        <a th:href="'/cart/addItemToCart?workingItemId=' + ${item.itemId}" class="Button" >Add to Cart</a>
                    </td>
                </tr>
            </table>

        </div>
    </div>
<div th:replace="common/bottom"></div>
</body>
</html>